<?php
	class Logout extends CI_Controller
	{
		public function __construct()
		{
			parent::__construct();
			if (!isset($_SESSION)) {
			    session_start();
			    session_regenerate_id();
			}
			$this->load->helper("url");
			
		}
		public function index()
		{
			unset($_SESSION['admindeal']);
			echo '<script>
			window.location.assign("'.base_url('login').'");
			</script>';
		}
		
	}
?>